﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Hospitals/Master/HospitalsMaster.Master"
    AutoEventWireup="true" CodeBehind="InvoicePayList.aspx.cs" Inherits="HZ.DrugTrade.Web.Hospitals.Collection.InvoicePayList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="maincon">
        <div class="note">
            结算单列表</div>
        <div class="note2">
        </div>
        <table>
            <tr>
                <th>
                    企业名称：
                </th>
                <td>
                    <asp:Label runat="server" ID="lblCompanyName"></asp:Label>
                </td>
                <th>
                    应付总额：
                </th>
                <td>
                    <asp:Label runat="server" ID="lblPayAmount"></asp:Label>
                </td>
            </tr>
            <tr>
                <th>
                    实付总额：
                </th>
                <td>
                    <asp:Label runat="server" ID="lblActualAmount"></asp:Label>
                </td>
                <th>
                    历史欠款：
                </th>
                <td>
                    <asp:Label runat="server" ID="lblOweAmount"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <br />
    <div id="tabcontent2">
        <table class="querylist">
            <tr>
                <td align="right">
                    结算单名称：
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txtInvoicePayName"></asp:TextBox>
                </td>
                <td align="right">
                    <%--结算单编号：--%>
                </td>
                <td>
                    <%--<asp:TextBox runat="server" ID="txtInvoicePayId"></asp:TextBox>--%>
                </td>
                <td>
                    <asp:Button runat="server" ID="btnQuery" CssClass="btn" Text="查询" OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwProcurementProjectList" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        DataKeyNames="InvoicePaySerialID" EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1)%>
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
           <%-- <asp:TemplateField HeaderText="结算单号">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblInvoicePayNo" Text='<%#(DataBinder.Eval(Container,"DataItem.InvoicePayNo")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>--%>
            <asp:TemplateField HeaderText="结算单名称">
                <ItemTemplate>
                    <a href='InvoiceList.aspx?ID=<%#Eval("InvoicePaySerialID") %>&PName=<%#HttpUtility.UrlEncode(Eval("InvoicePayName").ToString()) %>'>
                        <asp:Label runat="server" ID="lblInvoicePayNames" Text='<%#(DataBinder.Eval(Container,"DataItem.InvoicePayName")) %>'
                            ToolTip="点击进入查看结算单详细信息"></asp:Label></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="PayAmount" HeaderText="应付金额" DataFormatString="{0:F2}" />
            <asp:BoundField DataField="ActualAmount" HeaderText="实付金额" DataFormatString="{0:F2}" />
            <%--            <asp:TemplateField HeaderText="应付金额">
                <ItemTemplate>
                    <asp:Label ID="lblPayAmount" runat="server" Text='<%#(DataBinder.Eval(Container,"DataItem.PayAmount")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="实付金额">
                <ItemTemplate>
                    <asp:Label ID="lblActualAmount" runat="server" Text='<%#(DataBinder.Eval(Container,"DataItem.ActualAmount")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>--%>
            <asp:BoundField DataField="InvoicePayTime" HeaderText="结算时间" DataFormatString="{0:d}" />
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>说明：<span></span></li>
        </ul>
    </div>
    <div class="listctrl">
        <input type="button" value="返回" onclick="javascript:history.go(-1)" class="btn" />
    </div>
</asp:Content>
